package mechanics;

/**
 * The Meting class holds data about a certain measurement, storing its values
 * and time index
 * 
 * @version 31-03-2009
 */
public class Meting {

	// The date of the measurement
	private String date;
	// The time of the measurement
	private String time;
	// The value of the humidity
	private int humidity;
	// The value of the light
	private int light;
	// The value of the temperature
	private int temperature;

	/**
	 * Constructor creates a new Meting
	 * 
	 * @param date The date of the measurement
	 * @param time The time of the measurement
	 * @param humidity The value of the humidity
	 * @param light The value of the light
	 * @param temperature The value of the temperature
	 */
	public Meting(String date, String time, int humidity, int light, int temperature) {
		this.date = date;
		this.time = time;
		this.humidity = humidity;
		this.light = light;
		this.temperature = temperature;
	}

	/**
	 * Returns the date of the measurement
	 * 
	 * @return The date of the measurement
	 */
	public String getDate() {
		return date;
	}

	/**
	 * Returns the time of the measurement
	 * 
	 * @return The time of the measurement
	 */
	public String getTime() {
		return time;
	}

	/**
	 * Sets the time of the measurement
	 * 
	 * @param time The new time of the measurement
	 */
	public void setTime(String time) {
		this.time = time;
	}

	/**
	 * Returns the value of the humidity
	 * 
	 * @return The value of the humidity in this measurement
	 */
	public int getHumidity() {
		return humidity;
	}

	/**
	 * Sets the value of the humidity
	 * 
	 * @param humidity The new humidity
	 */
	public void setHumidity(int humidity) {
		this.humidity = humidity;
	}

	/**
	 * Returns the value of the light
	 * 
	 * @return The value of the light in this measurement
	 */
	public int getLight() {
		return light;
	}

	/**
	 * Sets the value of the light
	 * 
	 * @param light The new light
	 */
	public void setLight(int light) {
		this.light = light;
	}

	/**
	 * Returns the value of the temperature
	 * 
	 * @return The value of the light in this measurement
	 */
	public int getTemperature() {
		return temperature;
	}

	/**
	 * Sets the value of the temperature
	 * 
	 * @param temperature The value of the temperature in this measurement
	 */
	public void setTemperature(int temperature) {
		this.temperature = temperature;
	}
}
